package simulator;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class infoDominio extends JDialog {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					infoDominio frame = new infoDominio();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public infoDominio() {
		setTitle("Domain information");
		setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 288, 412);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblName = new JLabel("Name:");
		lblName.setBounds(10, 24, 46, 14);
		contentPane.add(lblName);
		
		JLabel lblDescriptors = new JLabel("Description:");
		lblDescriptors.setBounds(10, 49, 95, 14);
		contentPane.add(lblDescriptors);
		
		JLabel lblParticipants = new JLabel("Participants:");
		lblParticipants.setBounds(10, 74, 148, 14);
		contentPane.add(lblParticipants);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(80, 74, 156, 48);
		contentPane.add(scrollPane);
		
		JList list = new JList();
		scrollPane.setViewportView(list);
		
		JLabel lblCreatedDocuments = new JLabel("Created documents:");
		lblCreatedDocuments.setBounds(10, 127, 148, 14);
		contentPane.add(lblCreatedDocuments);
		
		JLabel lblDocumentAccessed = new JLabel("Accessed documents:");
		lblDocumentAccessed.setBounds(10, 196, 148, 14);
		contentPane.add(lblDocumentAccessed);
		
		JLabel lblModificatedDocuments = new JLabel("Modificated documents");
		lblModificatedDocuments.setBounds(10, 271, 148, 14);
		contentPane.add(lblModificatedDocuments);
		
		JScrollPane scrollPane_1 = new JScrollPane();
		scrollPane_1.setBounds(80, 141, 156, 48);
		contentPane.add(scrollPane_1);
		
		JList list_1 = new JList();
		scrollPane_1.setViewportView(list_1);
		
		JScrollPane scrollPane_2 = new JScrollPane();
		scrollPane_2.setBounds(80, 211, 156, 48);
		contentPane.add(scrollPane_2);
		
		JList list_2 = new JList();
		scrollPane_2.setViewportView(list_2);
		
		JScrollPane scrollPane_3 = new JScrollPane();
		scrollPane_3.setBounds(80, 284, 156, 48);
		contentPane.add(scrollPane_3);
		
		JList list_3 = new JList();
		scrollPane_3.setViewportView(list_3);
		
		JButton btnCerrar = new JButton("Close");
		btnCerrar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				infoDominio.this.dispose();
			}
		});
		btnCerrar.setBounds(90, 343, 89, 23);
		contentPane.add(btnCerrar);
	}
}
